# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=scummvm
pkgver=2.7.1
pkgrel=0
pkgdesc="Engine for several graphical adventure games"
url="https://www.scummvm.org/"
arch="all !ppc64le" # build failure on ppc64le
license="GPL-2.0-or-later"
makedepends="
	alsa-lib-dev
	faad2-dev
	flac-dev
	fluidsynth-dev
	freetype-dev
	glu-dev
	jpeg-dev
	libogg-dev
	libpng-dev
	libtheora-dev
	libvorbis-dev
	sdl2-dev
	zlib-dev
	"
subpackages="$pkgname-doc"
source="
	https://downloads.scummvm.org/frs/scummvm/$pkgver/scummvm-$pkgver.tar.gz
	disable-forbidden.patch
	"

build() {
	./configure \
		--prefix=/usr \
		--enable-all-engines \
		--enable-release
	make
}

package() {
	make install DESTDIR="$pkgdir"
}

sha512sums="
fefe942de49ac9b2f1aa39e1201511f648fe2cf452f7c087eca5518ac43a160401c32fa2f290f18319041cf429a4dff86c135260e655b37312409677f15f4cc6  scummvm-2.7.1.tar.gz
a44de9540f18893b49b02c083694f8eb974e8ddead6d0c6b0453760d7452367cfcc4613215fab2223da8859ce389a53dd2f110cf3389798761c95efafd886542  disable-forbidden.patch
"
